package com.hxzy.bean;

import com.hxzy.util.CommonUtil;

import java.time.LocalDateTime;

/**
 * @author nick
 * @description
 * @date create in 2020/9/14
 */
public class HotFilm {
    private int id; //主键
    private LocalDateTime hotTime; //热映上架时间
    private int weight; //权重，排序需要使用
    private int state;
    private Film film; //热映的电影

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public LocalDateTime getHotTime() {
        return hotTime;
    }

    public void setHotTime(LocalDateTime hotTime) {
        this.hotTime = hotTime;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public Film getFilm() {
        return film;
    }

    public void setFilm(Film film) {
        this.film = film;
    }

    @Override
    public String toString() {
        return "HotFilm{" +
                "id=" + id +
                ", hotTime=" + CommonUtil.localDateTime2String(this.hotTime,CommonUtil.PATTERN2) +
                ", weight=" + weight +
                ", state=" + state +
                ", film=" + film +
                '}';
    }
}
